package com.example.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TonySong
 * @date 2024/6/24 0024
 * @time 19:59
 */
@RestController
@RequestMapping("/service-1")
public class HelloController {

    @Value("${server.port}")
    private Integer port;
    @RequestMapping("/hello")
    public String hello() {
        String s1 =null;
        System.out.println(s1.length());
        return  "端口号"+this.port+"Hello World";
    }
}
